package cn.sm.service;

import cn.sm.dao.IUserDao;
import cn.sm.domain.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: mayuanbao
 * @Date: 2018-12-01 14:51
 * @Description:
 */
@Service(value = "userService")
public class UserServiceImpl implements IUserService {
    @Resource(name = "userDao")
    private IUserDao dao;

    @Override
    public List<User> query( String id) {
        return dao.query(id);
    }
    @Override
    public int save(User user) {
        return dao.save(user);
    }
}
